<?php
class Core_Data_Userstatus {
	
	/**
	 * database handler
	 * 
	 * @var $database
	 */
	private $database;
	
	/**
	 * constructor
	 */
	public function __construct(){
		
		$this->database = new Core_Driver_MysqlImproved();
		
	}
	
	/**
	 * return user status
	 * 
	 * @return multitype:string $statusData
	 */
	public function getUserStatus(){
		
		$this->database->connect();
		
		$this->database->prepare(
			"
				SELECT
				user_status.user_banned
				FROM
				user_status
				ORDER
				BY
				user_status.user_banned
				ASC
				;
				"
		);
		
		$statusData = array();
		
		while($data = $this->database->fetch('array')){
			
			$statusData[$data['user_banned']] = $data['user_banned'];
		
		}
		
		return $statusData;
	}
	
}